package com.example.hospitalsystem.mapper;

import com.example.hospitalsystem.pojo.entity.BuyMedicineLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 购买药品记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-04-16
 */
@Mapper
public interface BuyMedicineLogMapper extends BaseMapper<BuyMedicineLog> {

    @Select("select * from buy_medicine_log where patient_name like concat('%',#{key},'%')")
    List<BuyMedicineLog> search(String key);
}
